import api from './request_api'
export const getuser = (user: any) => api.get(`/users/?page=${user.page}&limit=${user.limit}&keyword=${user.keyword}&sort=%2Bid`)

export const adduser = (user: any) => api.post(`/users`, user)

export const getusers = (id: any) => api.get(`/users/${id}`)

export const edituser = (user: any, id: any) => api.put(`/users/${id}`, user)

export const editpas = (user: any, id: number) => api.put(`/users/password/${id}`, user)